<template>
    <div>
        <div class="right_item">
            <div class="tu">
                <img src="../assets/images/shebei.png" alt="" />
            </div>
            <div class="she">
                <img src="/src/assets/images/zu.png" alt="" />
            </div>
        </div>
       
    </div>
</template>

<script setup lang='ts'>
import { getshe } from '../request/api';
import { onMounted, ref } from 'vue'
const value1 = ref(true)
const datas = ref([])
const huan = (e) => {
    console.log(e)
}

const handleSwitchChange = (row: any) => {
    console.log('handleSwitchChange', row)
}

onMounted(() => {
    getshe().then(res => {
        datas.value = res.data.data.map((item, index) => {
            if (item.ettg_status == '开启') {
                item.ettg_status = true
            } else {
                item.ettg_status = false
            }
            return item
        })
    })
})

</script>

<style scoped lang="scss">
.right_item {
  margin-top: 10px;
  width: 100%;
  height: 150px;
  background: #0c1d5f;
  display: flex;
  align-items: center;
  justify-content: space-around;
  .tu {
    width: 40% !important;
    height: 100%;
    text-align: center;
    img {
      width: 120px;
      height: 120px;
    }
  }
  .she {
    flex: 1;
    color: #fff;
    img {
      width: 220px;
    }
  }
}
.right_di {
  height: 300px;
  margin-top: 12px;
  background: #0c1d5f;
  color: #fff;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  table {
    border: 1px solid #eee;
    border-collapse: collapse;
  }
  td {
    width: 152px;
    height: 30px;
    text-align: center;
    border: 1px solid #ccc;
  }
}
</style>